package com.logisticsmanagement.utils;

public class GlobelValue {

	//request method const value define
	public static String REQUEST_METHOD="requestMethod";
	public static String METHOD_LOGIN="login";
	public static String METHOD_ADD = "add";
	public static String METHOD_UPDATE = "update";
	public static String METHOD_DELETE = "delete";
	public static String METHOD_GETINFO = "getInfo";
	public static String METHOD_GETLIST = "getList";
	
	
	//response code define
	public static String RESPONSE_CODE="result";
	
	public static String RESULT_SERVER_ERROR="-1";
	public static String RESULT_SERVER_ERROR_DESCRIPTION="server error occured";
	
	public static String RESULT_OK="0";
	public static String RESULT_OK_DESCRIPTON="response state is ok";
	
	public static String ERROR_LOST_REQUEST_MOTHOD = "1";
	public static String ERROR_LOST_REQUEST_MOTHOD_DESCRIPTION = "lost request mothod field";
	
	public static String ERROR_NOT_EXIST_REQUEST_MOTHOD="2";
	public static String ERROR_NOT_EXIST_REQUEST_MOTHOD_DESCRIPTION = "the request mothod is not defined on server";
	
	public static String RESULT_LOGIN_FAILED="3";
	public static String RESULT_LOGIN_FAILED_DESCRIPTON = "login failed ,user not exist or password error";
	
	public static String RESULT_REGISTER_USERNAME_DUPLICATE = "4";
	public static String RESULT_REGISTER_USERNAME_DUPLICATE_DESCRIPTION= "user id all with exit";
	
	public static String RESULT_PAREM_NOT_COMPLETE="5";
	public static String RESULT_PAREM_NOT_COMPLETE_DESCRIPTION="requst method should input some paremeter,but there is not recive this paremeter";
	
	public static String RESULT_FOREIN_KEY_CONSTRAINT_FAILED="6";
	public static String RESULT_FOREIN_KEY_CONSTRAINT_FAILED_DESCRIPTON="change some attribute,and this attribute is constrainted in another table,so this change is not allowed";
	
	public static String RESULT_PERMISSION_DENY="7";
	public static String RESULT_PERMISSION_DENY_DESCRIPTON="permission deny";
	
	public static String RESULT_DATA_ILLEGAL="8";
	public static String RESULT_DATA_ILLEGAL_DESCRIPTION="data illegal";
	
	public static String RESULT_REQUEST_DATA_NOT_EXIST="9";
	public static String RESULT_REQUEST_DATA_NOT_EXIST_DESCRIPTION="request data not exist";
	
	
	//indent state define
	public static int STATE_SUBMIT=1;
	public static int STATE_COMFIRM = 2;
	public static int STATE_WAITE_DELIVERY = 3;
	public static int STATE_STATION_CITY = 4;
	public static int STATE_BETWEEN_CITY = 5;
	public static int STATE_CITY_STATION = 6;
	public static int STATE_EAITE_GAIN = 7;
	public static int STATE_FINISH = 8;
	public static int STATE_CANCEL = 9;
	
	//indent payMode define
	public static int PAY_MODE_ONLINE=1;
	public static int PAY_MODE_COD =2;//cash on delivery
	
	//query state define
	public static String QUERY_NOT_FOUND="0";
	public static String QUERY_NOT_FOUND_DESCRIPTON="QUERY_NOT_FOUND_DESCRIPTON";
	public static String QUERY_SUCCESS="1";
	public static String QUERY_SUCCESS_DESCRIPTON="QUERY_SUCCESS_DESCRIPTON";
	
	//role name define
	public static String NAME_SYSTEM_ADMIN = "generalAdmin";
	public static String NAME_PROVINCE_ADMIN = "companyUser";
	public static String NAME_DELIVERY_STATION_ADMIN = "deliveryStationAdmin";
	public static String NAME_DRIVER = "driver";
	public static String NAME_NORMAL_USER = "normalUser";
	
	//price _radio
	public static double PRICE_PROPORTION=0.2;
	//page_size
	public static int PAGE_SIZE=100;
	
	
}
